This repository has been archived by the owner on Jun 8, 2019. It is now read-only.
forked from gogs/go-gogs-client
-
Notifications
You must be signed in to change notification settings - Fork 53
Adds structures for repo file and blob APIs #152
Merged
zeripath
merged 13 commits into
go-gitea:master
from
richmahn:feature-4762-api-content-create-update-delete
Mar 21, 2019
Merged
Adds structures for repo file and blob APIs #152
zeripath
merged 13 commits into
go-gitea:master
from
richmahn:feature-4762-api-content-create-update-delete
Mar 21, 2019
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lafriks
reviewed
Mar 12, 2019
@richmahn can you merge the latest changes to master into this branch. I’ve updated things with Drone that’ll hopefully resolve the issues that have been happening with the build of the Pr. |
…content-create-update-delete
techknowlogick
approved these changes
Mar 18, 2019
lunny
suggested changes
Mar 19, 2019
jolheiser
approved these changes
Mar 20, 2019
axifive
approved these changes
Mar 20, 2019
lunny
approved these changes
Mar 21, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These are changes to the SDK to work with the feature of Creating/Updating/Deleting/Viewing repo files in the API (go-gitea/gitea#4762)
This adds a few structures to the SDK to handle API calls for files, creating, updating, deleting and viewing the blob. There are different input/output structures so that the API Swagger will respectively show slight differences for Create, Update and Delete input/output yet reuse code/names to keep everything unified.
These structures are identical to what one can find for GitHub's API in https://developer.github.com/v3/repos/contents/#create-a-file (and the other sections) and https://developer.github.com/v3/git/blobs/#get-a-blob
Dependent upon by the Gitea PR: go-gitea/gitea#6314